/**
 * @author:zhengyilong
 * @email:1797344574@qq.com
 * @phone:13479394730
 * @desc:
 * @DateTime:2022/3/4 9:17
 **/
public class Demo {

    public static void main(String[] args) {

        Stu[] arr = new Stu[5];
        arr[0] = new Stu(1001,"一了了",100);
        arr[1] = new Stu(1002,"张三",80);
        arr[2] = new Stu(1003,"李四",60);
        arr[3] = new Stu(1004,"王五",49);
        arr[4] = new Stu(1005,"李六",89);
        System.out.println(arr[2]);

        Car[] arrCar = new Car[8];
        arrCar[0] = new Car("郑州","武汉");
        arrCar[1] = new Car("郑州","俄罗斯");
        arrCar[2] = new Car("郑州","上海");
        arrCar[3] = new Car("武汉","乌克兰");
        arrCar[4] = new Car("俄罗斯","深证");
        arrCar[5] = new Car("乌克兰","深圳");
        arrCar[6] = new Car("乌克兰","南昌");
        arrCar[7] = new Car("南昌","深圳");
        for (int i = 0;i<arrCar.length;i++){
            System.out.println(arrCar[i]);
        }

    }

}

